//
//  SetTableViewCell.m
//  projectOfTeamSample
//
//  Created by lanou3g on 15/11/21.
//  Copyright © 2015年 liukai. All rights reserved.
//

#import "SetTableViewCell.h"

@interface SetTableViewCell ()
@property (nonatomic,strong)UILabel *describLable;
@end

@implementation SetTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setSubView];
    }
    return self;
}

-(void)setSubView{
    
    CGRect frame = self.contentView.frame;
    self.describLable = [[UILabel alloc]initWithFrame:CGRectMake(frame.origin.x +30, frame.origin.y, frame.size.width / 3, frame.size.height)];
    [self.contentView addSubview:self.describLable];
}

-(void)SetSourceWithArray:(NSArray *)array index:(NSInteger)index{
    self.describLable.text = array[index];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
